package jd;

public class Main {
    public static void main(String[] args) {
        SimpleContainer container = new SimpleContainer();
        container.addBean(DataRepository.class);
        container.addBean(Service.class);

        Service service = container.getBean(Service.class);
        service.doSave("测试数据");
        String result = service.doGet();
        System.out.println(result);
    }
}
